import { App } from 'vue'
import {
  Check,
  Iphone,
  User,
  UserFilled,
  Avatar,
  List,
  Folder,
  Menu,
  Expand,
  Fold,
  CircleClose,
  Tools,
  Monitor,
  Setting,
  Goods,
  ChatLineRound,
  Refresh,
  Search,
  Edit,
  Delete,
  ArrowRight,
  ArrowDown,
  ArrowRightBold,
  ArrowDownBold
} from '@element-plus/icons-vue'

const icons = [
  Check,
  User,
  UserFilled,
  Iphone,
  Avatar,
  List,
  Folder,
  Menu,
  Expand,
  Fold,
  CircleClose,
  Tools,
  Monitor,
  Setting,
  Goods,
  ChatLineRound,
  Refresh,
  Search,
  Delete,
  Edit,
  ArrowRight,
  ArrowDown,
  ArrowRightBold,
  ArrowDownBold
]

//按需引入全局图标
export default function (app: App): void {
  for (const icon of icons) {
    app.component(icon.name, icon)
  }
}
